<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.hz.util.ToPinyin"%>
<%@page import="com.hz.util.Autocomplete"%>
<%
    String term = "" + request.getParameter("term");
    
    if (term != null) {
		term = new String(term.getBytes("iso-8859-1"), "utf-8");
    }
    term = ToPinyin.getPinYin(term); //将汉字转为拼音进行搜索，字符则不变
    out.println(Autocomplete.Auto(term));
%>
